// 身份验证相关的工具函数

const TokenKey = 'token'
const TenantIdKey = 'tenant_id'
// 获取 token
export function getToken() {
  return localStorage.getItem(TokenKey)
}

// 设置 token
export function setToken(token) {
  return localStorage.setItem(TokenKey, token)
}

// 移除 token
export function removeToken() {
  return localStorage.removeItem(TokenKey)
}

export function getTenantId() {
  return localStorage.getItem(TenantIdKey)
}

export function setTenantId(tenantId) {
  return localStorage.setItem(TenantIdKey, tenantId)
}
